﻿

using Abp.Domain.Entities.Auditing;
using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using static SOEI.Solution.AppCoreConst;

namespace SOEI.Solution.DomainEntities.RoomSourceVerifiy
{
    /// <summary>
    /// 房源核验表
    /// </summary>
    [Table("ROOMVERIFYAPPLYS")]
    public class RoomVerifyApply : AuditedEntity<long>
    {

        #region -------------------------------------------------实体属性---------------------------------------------- 

        ///<summary>
        /// 和研机构编号
        ///</summary>
        public long OrganizeID { get; set; }

        ///<summary>
        /// 房源核验码编号
        ///</summary>
        public long RoomVerifyID { get; set; }

        ///<summary>
        /// 房源核验码
        ///</summary>
        [MaxLength(EntityLength.Length20)]
        public string RoomVerifyCode { get; set; }

        ///<summary>
        /// 核验人
        ///</summary>
        public long? VerifyUserID { get; set; }

        ///<summary>
        /// 核验时间
        ///</summary>
        public DateTime VerifyTime { get; set; }

        ///<summary>
        /// 状态编码
        ///</summary>
        [MaxLength(EntityLength.Length20)]
        public string StateCode { get; set; }

        /// <summary>
        /// 备注信息
        /// </summary>
        public string Remark { get; set; }

        #endregion

        #region -------------------------------------------------用户定义---------------------------------------------- 
        /* 这里创建自己的代码 */
        /// <summary>
        /// 房源核验表
        /// </summary>
        [NotMapped]
        public virtual RoomVerify RoomVerify { get; set; }
        #endregion

        #region -------------------------------------------------导航属性---------------------------------------------- 

        #endregion
    }
}
